<?php
if($image != array()) {
$file = "/content/directory/images/membership/benefits/" . strtolower(substr($image['alias'], 0, 1)) . '/' . $image['alias'] . ".jpg";
$img = '<tr><td colspan="2"><img alt="" width="690px" height="586px" src="' . $file . '" /></td></tr>';	
} else {
	$img = "";
}
?>
<script type='text/javascript'>
$(document).ready(function(){
	var file = '<?php echo $img; ?>';
	$("table tr").eq(4).before(file);
});
</script>
<div class="content">
<b><u>Choose Your Level of Membership</u></b>
<br /><br />
<h3 style="color: #de4b32;">
    <b><?=$formTitle?></b>
  </h3>
<?php echo $form; ?>
  <br clear="all" />
  <? if(isset($item)): ?>
    <? echo Html::chars($item['name']); ?> - 
      <? if (isset($attachments[$item['id']])): ?>
	  <? foreach ($attachments[$item['id']] as $attachment): ?>
    	  <img src="/images/icons/pdf.png" width="16" height="16" class="middle" alt="" />
    	  <a href="/content/directory/attachments/<?=$attachment['section'] . '/' . substr($attachment['alias'], 0, 1) . '/' . $attachment['alias'] . '/' . $attachment['filename'] ?>" target="_blank">
		  <?=Html::chars($attachment['filename']); ?>
	  </a>
	  <? endforeach; ?>
      <? endif; ?>
    <? if(isset($item['text1'])): ?>
      <p><? echo $item['text1']; ?></p>
    <? endif; ?>
<?php if($membershipContent['text1'] != ''): ?>
<?php echo $membershipContent['text1']; ?>
<?php endif; ?>
  <? endif; ?>
  <p style="color:#d09022; font-size:14px; float:right; padding-right:20px;">
		<a href="#top" id="bottomLink">Top</a>
	</p>
</div>